import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

import VuexPersist from "vuex-persist";

const vuexLocal = new VuexPersist({
    storage: window.sessionStorage,
})

export default new Vuex.Store({
    state: {
        gwc: []
    },
    mutations: {
        jia(state, index) {
            state.gwc[index].num++
        }
    },
    actions: {

    },
    getters: {
        sun(state) {

        }
    },
    plugins: [vuexLocal.plugin],
})